package com.qst.system.service.impl;


import com.qst.system.domain.vo.BankcardVo;
import com.qst.system.mapper.BankcardMapper;
import com.qst.system.service.IBankcardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IBankcardServiceImpl implements IBankcardService {

    @Autowired
    private BankcardMapper bankcardMapper;

    @Override
    public List<BankcardVo> selectBankcardList(BankcardVo bankcard) {
        List<BankcardVo> bankcardVos = bankcardMapper.selectBankcardList(bankcard);
        return bankcardVos;
    }

    @Override
    public BankcardVo selectBankcardById(Long id) {
        return bankcardMapper.selectBankcardById(id);
    }

    @Override
    public int insertBankcard(BankcardVo bankcard) {
        return bankcardMapper.insertBankcard(bankcard);
    }

    @Override
    public int updateBankcard(BankcardVo bankcard) {
        return bankcardMapper.updateBankcard(bankcard);
    }

    @Override
    public int deleteBankcardById(Long id) {
        return bankcardMapper.deleteBankcardById(id);
    }

    @Override
    public int deleteBankcardByIds(Long[] ids) {
        return bankcardMapper.deleteBankcardByIds(ids);
    }

    @Override
    public List<BankcardVo> selectCompanyNameList() {
        return bankcardMapper.selectCompanyNameList();
    }
}